package cn.wolfcode.trip.api.controller;

import cn.wolfcode.trip.base.query.TravelCommendQueryObject;
import cn.wolfcode.trip.base.service.ITravelCommendService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * 推荐游记资源控制器
 */
@RestController
@RequestMapping("travelCommends")
public class TravelCommendController {
    @Autowired
    private ITravelCommendService travelCommendService;

    @GetMapping
    public PageInfo queryForList(TravelCommendQueryObject qo){
        return travelCommendService.queryForAppList(qo);
    }

}
